package com.itheima.day14.Myvolatile.test2;

import java.util.concurrent.FutureTask;

public class Demo {
    public static void main(String[] args) {
        MyCallable1 mc1 = new MyCallable1();
        FutureTask ft1 = new FutureTask(mc1);
        Thread t1 = new Thread(ft1);

        MyCallable2 mc2 = new MyCallable2();
        FutureTask ft2 = new FutureTask(mc2);
        Thread t2 = new Thread(ft2);

        t1.start();
        t2.start();

    }
}
